package com.example.buildtable.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class Recharge {
    @TableId(type = IdType.AUTO)
    private Integer rechargeId;
    private String rechargeOrder;
    @TableField(value = "recharge_member_id", target = Member.class)
    private Integer rechargeMemberId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private Member member;
    private Integer rechargeMoney;
    @TableField(value = "payment_method_id", target = PaymentMethod.class)
    private Integer paymentMethodId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private PaymentMethod paymentMethod;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date rechargeTime;
    private String remark;
}
